#ifndef EANIMATIONSET_H
#define EANIMATIONSET_H

class EAnimation;
#include "../Engine_global.h"

class ENGINESHARED_EXPORT EAnimationSet
{
public:
    EAnimationSet();
    ~EAnimationSet();

    bool addAnimation(const std::string& name, boost::shared_ptr<EAnimation> anim);
    bool setCurrentAnimation(const std::string& name);
    boost::shared_ptr<EAnimation> currentAnimation() const;

    void update(float dt);
private:
    typedef std::map<std::string, boost::shared_ptr<EAnimation> > Animations;
    Animations m_anims;
    boost::weak_ptr<EAnimation> m_currentAnim;
};

#endif // EANIMATIONSET_H
